import { defineStore } from 'pinia';

export interface Vector {
  id: string;
  name: string;
  type: string;
  dimension: number;
  connection: string;
  status: 'active' | 'inactive';
}

export const useVectorStore = defineStore('vector', {
  state: () => ({
    vectors: [] as Vector[],
  }),
  
  actions: {
    async fetchVectors(): Promise<Vector[]> {
      // TODO: 实现从后端获取向量库列表的逻辑
      return [];
    },
    
    async createVector(vector: Omit<Vector, 'id'>): Promise<Vector> {
      // TODO: 实现创建向量库的逻辑
      return { ...vector, id: Date.now().toString() };
    },
    
    async updateVector(vector: Vector): Promise<Vector> {
      // TODO: 实现更新向量库的逻辑
      return vector;
    },
    
    async deleteVector(id: string): Promise<void> {
      // TODO: 实现删除向量库的逻辑
    }
  }
}); 